function AccData (acc,money,maps,income) {
    this.acc = acc;
    //每个帐号固定100
    this.money = money;
    this.maps = maps;
    //谁消费了多少钱，可以分得多少钱 {acc:num}
    this.income = income;
}

module.exports.AccData=AccData;

//保存所有 {acc:accdata}
var wholeAccData = {};

module.exports.wholeAccData=wholeAccData;

//地图数据
function MapData(ower,data,consumption){
    this.ower = ower;//地图拥有者的帐号
    this.data = data;//上传的地图数据
    //产生的消费{acc:num}，与income的结构一样
    this.consumption = consumption;
}

module.exports.MapData=MapData;

var wholeMapData = {};

module.exports.wholeMapData=wholeMapData;

var mapid = 0;
function getMapId()
{
    let id = mapid++;
    console.log("mapid:",mapid);
    return mapid;
}

module.exports.getMapId = getMapId;